Xabi

[GAMEMODE] WiredPlayers Roleplay Server

Recommended Posts

Posted (edited)
9 hours ago, Soul said:

You didn't fix the other errors. You just hid them with a bigger one.
Its failing to initialize .NET because its supposed to be 2.2 instead of 2.1. 

@joew

Could you help me on how to fix it then, please?

I've already installed .NET CORE 2.2 SDK both 32 and 64 bits. But the VS don't shows it up on the project. =(

Look:

https://imgur.com/a/vM6mQ1p
 

How fix it, please?

Thank you!

 

@Soul

Edited by joew

Share this post


Link to post
Share on other sites
Posted (edited)

If you have not already done so, open the project in Visual Studio. Go to Project -> Project Properties -> Build -> Target Framework -> .NET Core 2.2. Then create with CTRL-B. That helped me out

Edited by varrez

Share this post


Link to post
Share on other sites
18 minutes ago, varrez said:

If you have not already done so, open the project in Visual Studio. Go to Project -> Project Properties -> Build -> Target Framework -> .NET Core 2.2. Then create with CTRL-B. That helped me out

@Soul

Thank you!
The problem was MS have diferent versions to .NET CORE 2.2 to VS 2017 and VS 2019. I was  using the version to VS 2019, so it was the problem. I have to get the .NET CORE 2.2.106 instead of 2.2.203 :P Thank you MS for make things very confusing -.-
So i got the right framework here: https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2.4/2.2.4-download.md#downloads

Share this post


Link to post
Share on other sites

Hum...

Im making something wrong.

How change the language to pt-BR or English?

I changed the meta.xml to: <setting name="culture" value="pt-BR"/> But still in Spanish.

The hotkey K don't worked to turn off engines of vehicles too.

Are there some documentation that help us to change what we need? I can create my character but can't change the clothes. And Is possible to character don't move at character creation? How i got angry, the character don't stops to move lol
Vehicles aren't loosing integrity too. It stills remains 100% ...

Thank you!
 

Share this post


Link to post
Share on other sites
vor 7 Stunden schrieb Soul:

As far as I can tell,

I would make the script detect if the item being equipped is or not a fishing rod. If it is, attatch to the left hand instead of the right hand.

The job checks if you're using a fishing rod on right hand, so change that aswell.

 

So:

Serverside > globals > globals.cs

[RemoteEvent("processMenuAction")]
public void ProcessMenuActionEvent(Client player, int itemId, string action)
{
  string message = string.Empty;
  ItemModel item = GetItemModelFromId(itemId);
  BusinessItemModel businessItem = Business.GetBusinessItemFromHash(item.hash);

  switch (action.ToLower())
  {
    /* ... */
    case Commands.ARG_EQUIP:
      if (player.GetSharedData(EntityData.PLAYER_RIGHT_HAND) != null)
      {
        player.SendChatMessage(Constants.COLOR_ERROR + ErrRes.right_hand_occupied);
      }
      else
      {
        // Set the item into the hand
        item.ownerEntity = Constants.ITEM_ENTITY_LEFT_HAND;
        if(item.hash == Constants.ITEM_HASH_FISHING_ROD)
          AttachItemToPlayer(player, item.id, item.hash, "IK_L_Hand", businessItem.position, businessItem.rotation, EntityData.PLAYER_LEFT_HAND);
        else
          AttachItemToPlayer(player, item.id, item.hash, "IK_R_Hand", businessItem.position, businessItem.rotation, EntityData.PLAYER_RIGHT_HAND);

        message = string.Format(InfoRes.player_inventory_equip, businessItem.description.ToLower());
        player.SendChatMessage(Constants.COLOR_INFO + message);
      }
      break;

Keep in mind I didn't try this, and its only based on my assumptions over-reading the code, but its something I would try.

Remember to update the Fishing job aswel, to check for a fhishing rod on the left hand instead.

Thank you very much :)

Share this post


Link to post
Share on other sites
Posted (edited)

1) Change Language:
-------------------------------------

I noticed that have GenRes, GenRes.pt-BR and GenRes.en-GB ...
And all subfolders from Messages have those 3 languages.

So how could i change the language, please?

2) Jobs:
--------------
How it works?

I read that:
You to spawn the vehicle with command /vehicle and set id to 100 + jobid.
So, I created one motorcycle with the command /vehicle.
Go to the Database phpmyadmin and change the id to 101
Restart the server
But I tried to drive it and it told me:
"No has atendido ningún pedido"

The same with trash job.

So, How jobs work, please? What have i do to make then working, please?

I even can't quit job, it tells me:
"Necesitas cumplir 5 pagas más hasta poder dejar el empleo"


3) Gas Stations:
---------------------------
I can't refuel on gas stations. I use the command and it tells me that its not a refuel place...
How I config the gas stations to work, please?

Thank you very much!!!!

Edited by joew

Share this post


Link to post
Share on other sites
Posted (edited)
2 hours ago, EskaPe said:

You've to install and uses the right .NET Core 2.2 for your version of visual studio. Visual Studio 2017 uses .NET Core  2.2.106 and 2019 uses .NET Core 2.2.203
Link: https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2.4/2.2.4-download.md#downloads

Edited by joew

Share this post


Link to post
Share on other sites
Posted (edited)

I can't leave the hotel room because i'm getting error:

The invoked member is not supported in a dynamic assembly.
System.Private.CoreLib
   at System.Reflection.Emit.InternalAssemblyBuilder.get_Location()
The invoked member is not supported in a dynamic assembly.
C#: compiling scripts..

CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute
       -> RAGEMP\client_resources\127.0.0.1_22005\cs_packages\WiredPlayers-Client\obj\Release\netcoreapp2.2\WiredPlayers-Client.AssemblyInfo.cs:13

CS0579: Duplicate 'System.Reflection.AssemblyConfigurationAttribute' attribute
       -> RAGEMP\client_resources\127.0.0.1_22005\cs_packages\WiredPlayers-Client\obj\Release\netcoreapp2.2\WiredPlayers-Client.AssemblyInfo.cs:14

CS0579: Duplicate 'System.Reflection.AssemblyFileVersionAttribute' attribute
       -> RAGEMP\client_resources\127.0.0.1_22005\cs_packages\WiredPlayers-Client\obj\Release\netcoreapp2.2\WiredPlayers-Client.AssemblyInfo.cs:15

CS0579: Duplicate 'System.Reflection.AssemblyInformationalVersionAttribute' attribute
       -> RAGEMP\client_resources\127.0.0.1_22005\cs_packages\WiredPlayers-Client\obj\Release\netcoreapp2.2\WiredPlayers-Client.AssemblyInfo.cs:16

CS0579: Duplicate 'System.Reflection.AssemblyProductAttribute' attribute
       -> RAGEMP\client_resources\127.0.0.1_22005\cs_packages\WiredPlayers-Client\obj\Release\netcoreapp2.2\WiredPlayers-Client.AssemblyInfo.cs:17

CS0579: Duplicate 'System.Reflection.AssemblyTitleAttribute' attribute
       -> RAGEMP\client_resources\127.0.0.1_22005\cs_packages\WiredPlayers-Client\obj\Release\netcoreapp2.2\WiredPlayers-Client.AssemblyInfo.cs:18

CS0579: Duplicate 'System.Reflection.AssemblyVersionAttribute' attribute
       -> RAGEMP\client_resources\127.0.0.1_22005\cs_packages\WiredPlayers-Client\obj\Release\netcoreapp2.2\WiredPlayers-Client.AssemblyInfo.cs:19

How could I fix it, please?

Thank you!

Edited by joew

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.