Jump to content

Recommended Posts

Posted

with Clientside

 

Javascript example:

let Ped = mp.peds.new(mp.game.joaat('a_m_y_bevhills_01'), new mp.Vector3( -1153.755, -718.8862, 20.97753), 127.3255, (streamPed) => {
    // Ped Streamed
    streamPed.setAlpha(0);
}, 0);

Change the Vector3 with yours coordination and then the rotation

sory for my bad english :D

  • Like 1
  • 9 months later...
  • 4 weeks later...
Posted
17 часов назад, Runway37 сказал:

thx. but example not working for me.

        "objectSpawn" loaded
Error: TypeError: Cannot read property 'new' of undefined
    at Object.<anonymous> (E:\games\ragemp\server-files\packages\objectSpawn\objectSpwanEvents.js:49:19)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (E:\games\ragemp\server-files\packages\objectSpawn\index.js:2:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
        "simple" loaded
        "suicide" loaded
        "syncedVehicle" loaded
        "vehiclesSpawn" loaded
[P] Plugin bridge.dll loaded!

can u help pls?

Posted

ok i think i solve the problem. this code on client-side:

let ped = mp.peds.new(
    mp.game.joaat('MP_F_Freemode_01'), 
    new mp.Vector3(-408, 6034, 31.3378),
    270.0,
    mp.players.local.dimension
);

its work. how i sync with other players this?  next step i think i need use this 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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