Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function skate()
- for k, v in ipairs (getElementsByType("player")) do
- local skin = getElementModel(v)
- if (skin == 92) or (skin == 99) then
- setPedWalkingStyle(v,138)
- end
- end
- end
- addEventHandler("onResourceStart",root,skate)
- function skate2(_, newModel)
- if (newModel == 99) or (newModel == 92) then
- setPedWalkingStyle(source,138)
- --outputChatBox("test")
- end
- end
- addEventHandler("onElementModelChange",root,skate2)
- addCommandHandler("skate",
- function(playerSource)
- local rannum = math.random(1, 2)
- if rannum == 1 then
- setElementModel(playerSource, 92)
- setPedWalkingStyle(playerSource,138)
- elseif rannum == 2 then
- setElementModel(playerSource, 99)
- setPedWalkingStyle(playerSource,138)
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment