-
Posts
158 -
Joined
-
Last visited
Everything posted by villr
-
I know some server's have easter eggs. Do somebody out there know if it is a custom id from gta or is it a txd maybe??
-
Thank you castillo soo mutch )
-
Still dont work Same error
-
i have just moved this script from another scritp i had but i dunno if i forgot some parts but i dont think so but it dont work at all now when i changed beacuse that you posted dident help me .. and the script is clientside dunno how it dident got this is error: WARNING: villrpg/rpg_c.lua:4 Bad argument @'addEventHandler'
-
Got a problem with my godmode script.. Part of server bit: function staff ( source, commandName) if isPlayerAdmin(source) then setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam ( source, teamStaff ) setPlayerWantedLevel ( source, 0 ) takeAllWeapons ( source ) giveWeapon ( source, 3, 1 ) giveWeapon ( source, 17, 500 ) giveWeapon ( source, 22, 700 ) giveWeapon ( source, 24, 100 ) giveWeapon (source, 27, 1000 ) giveWeapon (source, 29, 1900 ) giveWeapon (source, 31, 1500 ) giveWeapon ( source, 34, 1500 ) giveWeapon ( source, 39, 500 ) giveWeapon ( source, 40, 5 ) triggerClientEvent(source,"god_mode",source) setElementHealth ( source, 1000 ) setPlayerNametagColor ( source, 190, 200, 190 ) setElementModel ( source, 165 ) setPedArmor ( source, 1000 ) else outputChatBox ( "*" .. getPlayerName ( source ) .. "* this command is only for Staff .", source , 255,0,0 ) end end addCommandHandler("staff", staff) Client: addEvent("god_mode",true) addEventHandler("god_mode",getRootElement(), function () addEventHandler ( "onClientPlayerDamage", getRootElement(), cancelEventEvent) end) Whats the problem with it?.. this is the error message:server triggered clientisde event god_mode, but event is not added clientside
-
no he wroted it here beacuse i had lost my password but he posted it here and it was mine and he helped me. But now i got problems again with it.
-
What's the problem with this code? It dont wanna start when i added that you'll see where marker = createMarker(-1356.8,-260.0,15.6, "arrow", 2,255, 255,0) marker2 = createMarker(2.67,32.97,1201, "arrow", 2,255,255,0) marker1 = createMarker(-1356.8,-260.0,15.6,"arrow",2,255,255,0) marker3 = createMarker(2.67,32.97,1201, "arrow", 2,255,255,0) setElementInterior(marker2,1) veh = createVehicle(519,-1130.24,-405.96,16,0,0,90) veh1 = createVehicle(409,394.2,2603.26,51.0,0,0,10) setVehicleColor(veh1,0,0,0,0) setElementInterior(marker2,1) setTimer(function() local x,y,z = getElementPosition(veh) setElementPosition(marker,x-4,y+2,z+1,100) setTimer(function() local x,y,z = getElementPosition(veh1) setElementPosition(marker2,x-4,y+2,z+1,100) -- when i add this the script stops to work idk why? setElementInterior(marker, 0)end,1000,0) function customInt(thePlayer) if source ~= marker then return end if getElementType(thePlayer) == "vehicle" or getPedOccupiedVehicle(thePlayer) then return end local x,y,z = getElementPosition(marker2) setElementPosition(thePlayer,x,y,z) setElementInterior(thePlayer,getElementInterior(marker2)) end addEventHandler( "onMarkerHit",getRootElement(),customInt) function customInt(thePlayer) if source ~= marker2 then return end if getElementType(thePlayer) == "vehicle" or getPedOccupiedVehicle(thePlayer) then return end local x,y,z = getElementPosition(marker) setElementPosition(thePlayer,x,y,z) setElementInterior(thePlayer,getElementInterior(marker)) end addEventHandler( "onMarkerHit",getRootElement(),customInt)
-
How do you convert this map to gta/mta? i know u can someway beacuse i have seen some cs maps on the commnity but somebody know how i can fix them to mta? beacuse i want some cs maps if now somebody got some i can get
-
how can i add more teleports to the /sint command?
-
can u maybe fix in /hpanel so it works to make a house without interior? Like if u put a graveyard for sale for maybe 1 million u maybe dont want interior.
-
function getship () pirateship = getElementByID ( "pirateship" ) setTimer ( start, 5000, 1, pirateship ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), getship ) function start (pirateship) moveObject ( pirateship,40000,3304.4,-216, 12.5) setTimer( naarplaats, 41000, 1,pirateship) end function naarplaats(pirateship) local rx,ry,rz = getElementRotation ( pirateship ) setTimer ( setElementRotation,3000,1,pirateship,rx, ry, rz-50 ) end this is the code
-
I have a problem with the setobjectrotation code. I have a timer to set the rotation but it dont work. It just sets the rotation in 0seconds and thats not how i want it. I want it to set in maybe 3secs so it slowly moves. Here is code local rx,ry,rz = getElementRotation ( pirateship ) setTimer ( setElementRotation,3000,1,pirateship,rx, ry, rz-50 ) Someone know what the problem is?
-
yes it serverside but what do u mean with "visible to" argument? EDIT: Gonna try snake EDIT: Thx castillo im so noooby hehe
-
i have a problem in my output code, It dosent outpout the color codes just in white. Can i have put something wrong in this ? outputChatBox( getPlayerName(thePlayer).. "#FF8040Do u speak english?!",0, 0, 0, true ) It plays a sound that saying same as the output but i just get it white. Someone know what the problem is?
-
How can i unload a image created with guiCreateStaticImage,bllablalbal and then how can i unload it and change it to a other pic? Havent found the code on wiko so i ask here. Does it works to "unload/destroy"a image? If its possible then plz show code in here
-
thx that helped me veeeery mutch
-
So i have some problems with my script im making. The problem is when that things in script im making are "finished" with what they do i want to restart the script but it dont work here is code EDIT: randoms is name of script i wanna restart! function restartthisscript() local allResources = getResources() for index, res in (randoms) do if getResourceState(res) == "running" then restartResource(res) end end end and here its the part to restart it its more but thats just that setTimer(restartthisscript, 6000, 1) Whats the problem?
-
Dakilla: This script stop to work after 300 houses it will not take u to right interior or something and when u create house it creates other dimensions and all other shit! u need to fix that!
-
hay i need some help here local DRUNK1 = createPed ( 49,490.6,-10.8,1002.2,6.5 ) setElementInterior ( DRUNK1, 17 ) setElementDimension ( DRUNK1, 5 ) setPedAnimation(DRUNK1,"ped","WALK_drunk") --drunkguy-- function drunk() setPlayerRotation ( DRUNK1, 0 ) end setTimer(drunk, 2000, 0) i have it serverside but the ped wont change direction. can u help me so i get it to work?
