MRThinker Posted July 9, 2018 Posted July 9, 2018 how to make a cliyder teleporter i like : go to the cliyder and teleport to Police Department Interior! @Galactix you can help me for this script ?
Galactix Posted July 9, 2018 Posted July 9, 2018 function pdEnter() local pdMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) -- set coordinates to be in front of the Police Departement setElementInterior(source, 5, 322.72, 306.43, 999.15 end addEventHandler( "onMarkerHit", pdMarker, pdEnter ) Don't forget the thanks reaction if it helped 1
MRThinker Posted July 10, 2018 Author Posted July 10, 2018 @Galactix im stopped the admin resource and use /setskin my skin not set and error is [2018-07-10 13:15:21] ERROR: SetSkin\server.lua:25: attempt to call global 'findPlayer' (a nil value) and my server side is addCommandHandler('setskin',function(source,_,player,skinid) local find = findPlayer( player ) if find then local playerAccount = getPlayerAccount(source) local accName = getAccountName ( playerAccount ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setElementModel ( find, skinid ) outputChatBox("[PirateGaming] Your skin was changed to "..skinid.." by the admin "..accName.."!", find) else outputChatBox("You are not allowed to use this command!", source, 255,0,0) end else outputChatBox("Player not found!", source, 255,0,0) end end)
MRThinker Posted July 10, 2018 Author Posted July 10, 2018 (edited) i know! im use /setskin player skinid but have errors @Galactix Edited July 10, 2018 by MRThinker
Galactix Posted July 10, 2018 Posted July 10, 2018 If you provide a player argument then the findPlayer wouldn’t output an error unless you didn’t put any or if the player isn’t online
MRThinker Posted July 10, 2018 Author Posted July 10, 2018 no! im set myself skin and server have error!
MRThinker Posted July 10, 2018 Author Posted July 10, 2018 no! not working Works! But I want the server to tell me [Pirate-Gaming] Your Skin Set To ID 1 By Admin MRThinkeR
MRThinker Posted July 10, 2018 Author Posted July 10, 2018 15 hours ago, Galactix said: function pdEnter() local pdMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) -- set coordinates to be in front of the Police Departement setElementInterior(source, 5, 322.72, 306.43, 999.15 end addEventHandler( "onMarkerHit", pdMarker, pdEnter ) Don't forget the thanks reaction if it helped not working
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