Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
Use slothbot resource. It can helpalot.
-
Lol. Thanks for feedback! My new map will release today, If Bilal comes.
-
function onSpawn() wLogin = guiCreateWindow(200, 216, 366, 110, "", false) guiWindowSetSizable(wLogin, false) guiWindowSetMovable(wLogin, false) iName = guiCreateLabel(28, 33, 90, 15, "In-Game Name : ", false, wLogin) iEdit = guiCreateEdit(121, 27, 212, 31, "Firstname_Lastname", false, wLogin) iLogin = guiCreateButton(24, 68, 97, 31, "Login", false, wLogin) showCursor( true ) end addEventHandler("onPlayerJoin", root, onSpawn) function startSpawn() --При старте onSpawn() end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),onSpawn) local thePed = getPlayerFromName() function loginAccept() if source == iEdit and iLogin then setPlayerNametagText ( thePed, .. iEdit ) setElementPosition( source, 1953.69666, -1765.17114, 13.54688 ) fadeCamera ( true, 4 ) guiSetVisible( wLogin, false ) showCursor( false ) end end addEventHandler("onClientGUIClick", root, loginAccept) Exactly esporta05.
-
Thanks Bilal for posting for me. I am a COM member and my new map basketball coat is coming to. INFORMATION ABOUT THE MAP ( SHIPBASE ): - There is one interiour. - Can be used as army base. - Army peds. - One army ped shooting minigun. There are more features in it! Enjoy!!!!
-
checkGateMarker = createMarker ( 216.22926330566, 1875.0806884766, 7.4616560935974, "corona", 10.0, 0, 0, 255, 0 ) groupName = "groupName" function onPoliceShapeHit ( thePlayer, matchingDimension ) if not getElementData(thePlayer, "NameGroup") == groupName then return end if ( getElementType ( thePlayer ) == "player" ) then outputChatBox ( "You have entered Police Base zone!", thePlayer, 0, 0, 255 ) end end addEventHandler ( "onColShapeHit", policeColShape, onPoliceShapeHit ) function createGate () gatePolice = createObject ( 976, 209.8828125, 1875.8419189453, 12.372331619263 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate ) function gateCheckingTeam ( thePlayer, matchingDimension ) if not getElementData(thePlayer, "NameGroup") == groupName then return end moveObject ( gatePolice, 976, 218.11740112305, 1875.3406982422, 12.372331619263 ) end addEventHandler ( "onMarkerHit", checkGateMarker, gateCheckingTeam ) function onLeave ( thePlayer, matchingDimension ) if not getElementData(thePlayer, "NameGroup") == groupName then return end setTimer ( movingBackPolice, 3000, 1, thePlayer ) end addEventHandler ( "onMarkerLeave", checkGateMarker, onLeave ) function movingBackPolice () if not getElementData(thePlayer, "NameGroup") == groupName then return end moveObject ( gatePolice, 3000, 209.8828125, 1875.8419189453, 12.372331619263 ) end
-
Did you use: /aclrequest allow guieditor function.callRemote /aclrequest allow guieditor function.modifyOtherObjects Not sure about second one.
-
What group system are you using?
-
function callPetrolBlips (thePlayer) if getElementType(thePlayer) == "player" and (thePlayer) then gasStationsBlip[name] = createBlip(x,y,z,48,0,0,0,0,0,0,450); setTimer (destroyPetrolBlips, 60000, 1 ) outputChatBox("Streaming for gasstations, press F11!", thePlayer, 255, 100, 0, true) end end addCommandHandler("station", callPetrolBlips) function destroyPetrolBlips (thePlayer ) blips = getElementsByType("blip") for i, v in ipairs (blips) do blipIcon = getBlipIcon ( v ) if (blipIcon == 48) then destroyElement(v) end end outputChatBox("gasstations's blips have been removed, type /station !", thePlayer , 255, 100, 0, true, 5) end addCommandHandler("ok", destroyPetrolBlips)
-
When are they coming? Please PM me if there are knew. I will suscribe the channel!
-
Its a hidden folder lol..
-
Did you add mapeditor extension_c.lua or something like that. It makes .map file function.
-
Won't output also at all. You're outputing values at resource start. ( MEANS NO GRIDLIST WILL BE SELECTED THAT TIME ). So there's no sense.
-
remove lol. Keep it as function() setTimer(function() paymarker = createMarker(2620.49609375,-1750.9696044922,1464.6059570313 ,"cylinder",3,0,255,0,180) end, 10000, 0)
-
Spamming like hell. It makes me lag alot. Same warning
-
Again spams my debugscript 3. function createJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) marker = createMarker(x,y,z,"cylinder") ped = createPed(pedID, x,y,z ) setTimer(addEventHandler,5000,1,"onClientMarkerHit", marker, showJobWindow) triggerServerEvent("startJobScript", getLocalPlayer() ) end addEvent("createJob", true) addEventHandler("createJob", root, createJob) at createMarker bad arguement ;( Everything is defined.
-
Sorry, I fixed my self. I did a silly mistake LOL.
-
Et-win ty. Now one more problem came: function addJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) marker = createMarker(x,y,z,"cylinder") bad argument ( only this much ) ped = createPed(pedID, x,y,z ) -- bad argument ( only this much ) triggerClientEvent(root,"createJob",root,jobName,teamName,pedID,desc,marker,skins,occupation) end addEvent("startJobScript", true ) addEventHandler('startJobScript', root, addJob )
-
Max can't you shutup??? Why will I SHOW MY WHOLE CODE? YOU WANT TO LEAK IT, I BET. Et-win is more helpful. @Etwin - I will try it
-
I am making a job system. Window is at top. jobName and desc and teamName and skins are getting triggered thats why.