DeletedAccount1111 Posted February 14, 2014 Posted February 14, 2014 What I can change in the freeroam script so instead of random, they spawn as CJ? function spawnMe(x, y, z) if not x then x, y, z = getElementPosition(source) end if isPedTerminated(source) then repeat until spawnPlayer(source, x, y, z, 0, math.random(0, 0)) else spawnPlayer(source, x, y, z, 0, getPedSkin(source)) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end
Anubhav Posted February 14, 2014 Posted February 14, 2014 function spawnMe(x, y, z) if not x then x, y, z = getElementPosition(source) end if isPedTerminated(source) then repeat until spawnPlayer(source, x, y, z, 0, 0) else spawnPlayer(source, x, y, z, 0, getPedSkin(source)) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Moderators Citizen Posted February 14, 2014 Moderators Posted February 14, 2014 (edited) Try this, put it anywhere in the server side: function forceCJSkin() setElementModel(source, 0) end addEventHandler("onPlayerSpawn", root, forceCJSkin) Regards, Citizen *Edited*: Fixed the typo (cf. next post) Edited February 14, 2014 by Guest The rEvolution is coming ...
Castillo Posted February 14, 2014 Posted February 14, 2014 You got a typo there in "fonction". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators Citizen Posted February 14, 2014 Moderators Posted February 14, 2014 Yeah fixed, thanks The rEvolution is coming ...
DeletedAccount1111 Posted February 15, 2014 Author Posted February 15, 2014 Try this, put it anywhere in the server side: function forceCJSkin() setElementModel(source, 0) end addEventHandler("onPlayerSpawn", root, forceCJSkin) Regards, Citizen *Edited*: Fixed the typo (cf. next post) Is this supossed to work as a server side, standalone script Or being inside the freeroam resource?
Controlled Posted February 15, 2014 Posted February 15, 2014 It can be placed in your freeroam resource.
Anubhav Posted February 15, 2014 Posted February 15, 2014 Use that script as server. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Saml1er Posted February 15, 2014 Posted February 15, 2014 Where is source defined? You're calling this function, right? Anyways why don't you try debugging it?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now