Jump to content

Recommended Posts

Posted
2 hours ago, Roven said:

Thanks!
who causes this event --> playerEnterColshape

can't find anywhere

 

mp.events.add('playerEnterColshape', (shape) => {
    switch(shape.id) {
        case policeMainDoors.id:
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_ph_door002'), 434.7479, -983.2151, 30.83926, true, 0, false);
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_ph_door01'), 434.7479, -980.6184, 30.83926, true, 0, false);
            break;
        case policeBackDoors.id:
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_rc_door2'), 469.9679, -1014.452, 26.53623, true, 0, false);
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_rc_door2'), 467.3716, -1014.452, 26.53623, true, 0, false);
            break;
        case policeCellDoors.id:
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_ph_cellgate'), 461.8065, -994.4086, 25.06443, true, 0, false);
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_ph_cellgate'), 461.8065, -997.6583, 25.06443, true, 0, false);
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_ph_cellgate'), 461.8065, -1001.302, 25.06443, true, 0, false);
            break;
        case motorsportMain.id:
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_csr_door_l'), -59.89302, -1092.952, 26.88362, false, 0, false);
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_csr_door_r'), -60.54582, -1094.749, 26.88872, false, 0, false);
            break;
        case supermarketDoors.id:
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_gasdoor'), -711.5449, -915.5397, 19.21559, true, 0, false);
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_gasdoor_r'), -711.5449, -915.5397, 19.2156, true, 0, false);
            break;
        case clubhouseDoor.id:
            mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_lostdoor'), 981.7533, -102.7987, 74.84873, true, 0, false);
            break;
    }
});

Did you try reading the wiki...?

https://wiki.rage.mp/index.php?title=Client-side_events

Posted

anyone has a idea why the login screen and that things not appear right. ?

9T9tNUS.png

image.png.daaf2efd9689ff2de85825c58bb49441.png

cant put in there a name, the cef things wont work at my site :( anyone has a idea?

Posted

Hello

someone here who found out how to fix the jobs and Parking? I found some bugs - would be cool if someone Can help me out with some questions.

write me a pn

Thanks

Posted
В 01.08.2018 в 10:24 AM, Xabi сказал:

You didn't compile the solution at Visual Studio.

tell me more in detail how to do it?

Posted

WiredPlayers: loaded 51 remote event(s)
-> Error starting 'WiredPlayers'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Sistem belirtilen dosyayı bulamıyor.
   at void WiredPlayers.database.Database.OnResourceStart()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent)

Started! Waiting for connections..
 

Posted
1 hour ago, onurlife said:

WiredPlayers: loaded 51 remote event(s)
-> Error starting 'WiredPlayers'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Sistem belirtilen dosyayı bulamıyor.
   at void WiredPlayers.database.Database.OnResourceStart()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent)

Started! Waiting for connections..
 

Did you compile the solution? Do you have all the required libraries (bridge + server) under runtime folder?

Posted
7 hours ago, Xabi said:

Did you compile the solution? Do you have all the required libraries (bridge + server) under runtime folder?

yes but i think mysql connection not working and 

  [ServerEvent(Event.ResourceStart)] makin that error

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...