TheMaysTRo
Members-
Posts
60 -
Joined
-
Last visited
Everything posted by TheMaysTRo
-
Hello. i created a marker and i called it "paymarker" then i created another marker at the whole place and i wanted to kill all player that are in the "killmarker" when someone hit the "paymarker" and this is the code :(i don't know why its not working , no error on console.) paymarker = createMarker ( 2620.49609375,-1750.9696044922,1464.6059570313 ,"cylinder",2,255,2,0,180) local killmarker = createMarker (2614.2666015625,-1754.1813964844,1442.5999755859, "cylinder", 290, 2500, 0, 0, 100, getRootElement()) setElementVisibleTo (killmarker,root,false ) function kill(player) if isElementWithinMarker(player, killmarker) then killPed (player) end end addEventHandler( "onMarkerHit", paymarker,kill ) Help Please.
-
ok . i tried this and i don't know why its not working ? any idea ? local hayMarker2 = createMarker (2614.2666015625,-1754.1813964844,1442.5999755859, "cylinder", 290, 2500, 0, 0, 100, getRootElement()) setElementVisibleTo (hayMarker2,root,false ) function jetpackremove (player) if doesPedHaveJetPack( player ) then removePedJetPack ( player ) end end addEventHandler ("onMarkerHit", hayMarker2, jetpackremove)
-
well i gave you the col shape code ,thats what i can do , itried what they gave me and its not working , if you don't like to help don't help me .
-
Help Please ? i want that no one can use a jetpack or vehicle on this col shape
-
well , not working not working also
-
Not working :[
-
if someone entred the colshape with car , his car destroyed or something , and jetpack . he can't use them in the colshape
-
Hello . i create a col shape . local tempCol = createColCuboid ( 2360.6469726563,-1803.5179443359,1442.5999755859, 500, 120, 10.0 ) and when i hit this col shape only .I want to toggle vehicles and jetpack off there . and toggle them back on when i exit col shape .
-
thanks alot it worked .thanks to all who helped me.
-
setTimer(function lol() paymarker = createMarker(2620.49609375,-1750.9696044922,1464.6059570313 ,"cylinder",3,0,255,0,180) end, 10000, 0) that's not working
-
not working. function payme() if (source == paymarker) then outputChatBox ("Type /iwonthewar get your prize ",255,0,0,false) addCommandHandler("iwonthewar",money) end end addEventHandler( "onClientMarkerHit", getRootElement(),payme )
-
Hello . i created a marker on client side and i want to use "onClientMarkerHit" on the pay marker only not on the whole server markers but its not working like "onMakrerHit" on the server side. local paymarker = setTimer (createMarker,1800000,0, 2620.49609375,-1750.9696044922,1464.6059570313 ,"cylinder",3,0,255,0,180) addEventHandler( "onClientMarkerHit", getRootElement(), payme )
-
jobveh = createVehicle (truckModel,car[1],car[2],car[3],0,0,car[4]) idlist = {602,410,545,436,551} vehidd = idlist [math.random(#idlist)] function create ( player,seat,jacked) if (getElementModel (jobveh) == 525) then local x, y, z = unpack ( jobspawn [ math.random ( #jobspawn ) ] ) vehId=math.random(1,6); vehic = createVehicle (vehidd,jobspawn[vehId][1], jobspawn[vehId][2], jobspawn[vehId][3]) setVehicleDamageProof (vehic , true ) setElementHealth (vehic, 495 ) setVehicleEngineState (vehic, false) setVehicleLocked (vehic , true ) vehblip = createBlipAttachedTo (vehic,0,4,255,255,0,255,0,9999.0,player) end end addEventHandler ( "onVehicleEnter", getRootElement(player), create ) the vehic and the vehblip should appear when i enter the tow truck only thats have the id 525 and its appearing on evrey car. whats the soulution ?
-
i want to know the speed to say that if the speed is > 0 then add 1 to the progress bar any one can help me please ?
-
i want to know the speed to say that if the speed is > 0 then add 1 to the progress bar
-
function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.8 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end addEventHandler( "onClientVehicleEnter", getRootElement(), getElementSpeed ) function speed (client , seat , jacked) if ( getElementModel ( veh ) == 531 ) then speed = getElementSpeed (veh,"mph") if speed > 0 then guiProgressBarSetProgress(progressBar,tonumber(guiProgressBarGetProgress(progressBar))+1) end end end addEventHandler( "onClientVehicleEnter", getRootElement(), speed ) whats the problem ???
-
i want to get the vehicle speed so when its move i will make the progress bar of my job add 1% and i set on it timer
-
i don't want to apply the speed on the screen the progress bar is for something else .
-
function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.8 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end function test(source,mph) speed = getElementSpeed if speed > = 0 then guiProgressBarSetProgress(progressBar,tonumber(guiProgressBarGetProgress(progressBar))+1) end addEventHandler ( "onClientRender", root, test ) settimer (test,1000,100) this is what i used
-
i tried function getElementSpeed(source,mph) speed = getElementSpeed if speed > = 0 then guiProgressBarSetProgress(progressBar,tonumber(guiProgressBarGetProgress(progressBar))+1) end not working
-
all i want to know is a way to know for example a car like turismo speed . like now im not moving so the speed is 0 . (i want to know my car speed i tied speed = getelementspeed if speed =0 then ....)
-
not working also . i tried it
-
hello . i can't find a soultion or anything on the wiki or google . i want to ask how to get the vitesse of a specific vehicle ? i already tried getElementSpeed. thanks.
