-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
You're welcome.
-
--Server Side-- go = createMarker(2093, 1434, 10, 'cylinder', 1.0, 255, 255, 0, 70) Team = createTeam('Armed Force',255,255,0) function setTeam(player) setPlayerTeam(player, Team) setElementModel(player, 285) setPlayerMoney(player, 1000) end addEventHandler('onMarkerHit',go,setTeam)
-
You maybe are in vehicle or You aren't in group FBI or you are using it client side
-
addEventHandler("onPlayerConnect",root, function(idiot) if idiot == 'X-SHADOW' then cancelEvent(true,"TAPL hate you :[") end end)
-
Editing admin panel is not that easy for you. you should learn: https://wiki.multitheftauto.com
-
haha if(getPlayerName == 'TAPL' then outputChatBox('TAPL is laying' lol) end) if getPlayerName(idiot) == 'X-SHADOW' then outputChatBox('X-SHADOW is idiot lol') end
-
I don't want admin in your server and i don't need it. I script for money, PM me if you want.
-
if guiGetText(edit1)== guiGetText(edit2) then
-
I suggest to use event onClientElementDataChange https://wiki.multitheftauto.com/wiki/OnC ... DataChange
-
do you need setTimer? when you kill player you can use event onClientPlayerWasted with guiSetText() https://wiki.multitheftauto.com/wiki/OnC ... ayerWasted
-
Your data 'rank' return string type. Convert string to number with function tonumber if tonumber( getElementData ( localPlayer, 'rank' ) ) < 50 then outputChatBox 'hey' end If this not working try check what return data 'rank'. you forgot ")" in outputChatBox
-
You can use trigger - setElementData
-
twitch97@ WTF is your fucking problem whenever tell you to do a thing, you say How? omg i tell you that pool resource is not running and you said omg are you stupid or idiot or both or what?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
resource need other resource to can run without problem and the resource that needed aren't running What should you do in this situation? Kills YourSelf for example?
-
ohk , how do i fix it? ohk huh? you need to kill yourself
-
for key, value in ipairs(exports.pool:getPoolElementsByType("player")) do triggerEvent("playerJoinResourceStart", value, resource) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), resourceStart) your problem is 'pool' resource doesn't return the table why? look at the log file ERROR: exports: Call to non-running server resource (pool) [string "?"] Problem: pool resource is not running
-
ERROR: realism-system/s_vehicle_crash.lua:11: attempt to call global [ 'getLocalPlayer' (a nil value) you are using getLocalPlayer in server-side https://wiki.multitheftauto.com/wiki/GetLocalPlayer ------------------------------------------------------- ERROR: account-system/s_account_system_sapphire.lua:94: bad argument [ #1 to 'ipairs' (table expected, got nil) sure no error? Show the code or stop waste our time i saw a lot of topics like this and there no code to check and see where is the problem how we can help you if you didn't post the code?!!!!
-
you have to do the same as i did add the event when you create the marker.
-
addEvent("rep",true) addEventHandler("rep",root, function() triggerClientEvent(root,"rep1",root) end) check the code i edit it
-
is 'apps-system' compressed?
-
nothing in debugscript 3? realy? marker = createMarker(2055.4,-1775.08,12.6,"cylinder",2, 249, 19, 75, 190 ) teamCriminal = createTeam( "Criminal", 249, 19, 75) function robber(hitPlayer) setElementModel(hitPlayer,115) setPlayerTeam(hitPlayer,teamCriminal) setPlayerNametagColor(hitPlayer,249,19,75) if marker1 then removeEventHandler("onMarkerHit",marker1,hitstart) destroyElement(marker1) end marker1 = createMarker(2144.3,-1663.7,14.6,"cylinder",2, 249, 19, 75, 190) addEventHandler("onMarkerHit",marker1,hitstart) end addEventHandler("onMarkerHit",marker,robber) function hitstart(hitPlayer) givePlayerMoney(hitPlayer, 200) destroyElement(marker1) end
-
you means this? https://wiki.multitheftauto.com/wiki/GetElementID
-
What map? You didn't post any thing in this topic related to maps. check /debugscript 3