Galactix
Members-
Posts
121 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Galactix
-
I can't help, sorry On a more serious note, just try to wait for someone experienced to see your topic and actually give you a hint or a solution to your problem
-
I think the error is because you're using player both in your targetself variable and if statement. Try to change the if part to Something like if targetself == source. If you just use player like you did then it will do it for ALL the players targeted and it will Always hide the laser.
-
Could you explain what you're trying to do and what doesn't work exactly with what you did?
-
Your hasObjectPermission is set to false. By default an admin has access to the ban player permission and it is what causes the script to fail to work
-
Change source to Drzika[source]
- 1 reply
-
- 1
-
Just use this https://wiki.multitheftauto.com/wiki/SetPlayerStat for all weapons( you could probably gain time with a table or something containing all the IDs) and add an handler « onPlayerSpawn »
-
With getPlayerIdle time you can make a if statement that would trigger the image to show after a certain idle time by the player
-
https://wiki.multitheftauto.com/wiki/GetPlayerIdleTime
-
From what the wiki says, the function is client side only, so you would probably need to use a handler with onVehicleEnter.
-
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("[Pirate-Gaming]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)
-
If you write /setskin MRThinker 1 it would work
-
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
-
You need to do /setskin player skinid
-
[LF] Developers to work on a ready RPG server [PAID]
Galactix replied to Unknown-Guy's topic in Looking for staff
I am interested. -
Hello, I have the Following issue: I tried to set a variable to a getLocalPlayer but it just keeps returning nil value, why? My script is clientside so this is not the problem local player = getLocalPlayer ( )
-
Go in private messages.
-
function goToBeach() setElementPosition(localPlayer, 343.20026, -1780.60388, 5.22299) end addCommandHandler("gotobeach", goToBeach)
-
function goToBeach() setElementPosition(source, 343.20026, -1780.60388, 5.22299) end addCommandHandler("gotobeach", goToBeach) Don't forget to add a Thanks reaction if it helped
-
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
-
The script works perfectly for me. You have to do /setskin (name) (skin id)
-
Can you give the error?
-
I meant reaction but that’s ok ^^