Xabi

[GAMEMODE] WiredPlayers Roleplay Server

Recommended Posts

vor 42 Minuten schrieb Xabi:

With every server change you have to recompile the gamemode.

okay I will test it right now

 

Updated:

Okay now works fine with MySQL 5.7 

and not Works with 8.x  I think the Problem is on 8.X the SSL cipher,  but I have not seen any way to disable this

Edited by Geekbee

Share this post


Link to post
Share on other sites

How to understand what this code does, what synchronization?

NAPI.Data.SetEntityData
NAPI.Entity.SetEntitySharedData
NAPI.Data.GetEntityData
NAPI.Data.GetEntitySharedData

What synchronization are we talking about?

Share this post


Link to post
Share on other sites
1 hour ago, Roven said:

How to understand what this code does, what synchronization?

NAPI.Data.SetEntityData
NAPI.Entity.SetEntitySharedData
NAPI.Data.GetEntityData
NAPI.Data.GetEntitySharedData

What synchronization are we talking about?

This topic isn't for API related questions, it's only related to the gamemode.

Share this post


Link to post
Share on other sites

what about Jobs ?

I have the garbage,approved but no car spawn to collect trash

Share this post


Link to post
Share on other sites
Just now, Geekbee said:

what about Jobs ?

I have the garbage,approved but no car spawn to collect trash

You have to spawn them manually and set their faction to 100 + jobId. You can find the ids on Constants.cs file.

Share this post


Link to post
Share on other sites

Good.
Then how do you open the doors?
To open them as in single mode
Or is it impossible to RAGE?

I mean the doors of the houses.

Edited by Roven

Share this post


Link to post
Share on other sites
2 hours ago, Roven said:

Good.
Then how do you open the doors?
To open them as in single mode
Or is it impossible to RAGE?

I mean the doors of the houses.

There's an example on doors.js file.

  • Like 1

Share this post


Link to post
Share on other sites

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;
    }
});
Edited by Roven

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.