Jump to content

Making a script.


Coinz

Recommended Posts

Posted

Hey, I was just wondering that how I could make the following script:

You type for example /saveskin and it "saves" the skin. Then I change my character's skin and I want to have the old skin made with /saveskin back by typing command /resetskin for example. Any ideas how could this be made?

I was thinking about getting the skin with GetPedSkin first, then naming the current skin and then at /resetskin doing SetPedSkin and the name of the value which I got from GetPedSkin. However I don't know what would I set as the second argument in SetPedSkin as I want it to be the old skin which player "saved". Thank you.

Posted

read about:

getElementData

setElementData

getElementModel

setElementModel

addCommandHandler

that should be enough

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

for this he will also need

getPlayerAccount

and

isGuestAccount

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

@benxamix2:

1.) Don't spam.

2.) If topic creator ask for close - we will close. ThaCoinz didn't reply anything, he can solve his problem, but also he can still work on it (because of lack of free time for examplo) and he can get stuck somewhere.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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...