-
Posts
1,050 -
Joined
-
Last visited
Everything posted by ViRuZGamiing
-
How can I add this to my code and is it correct? ; -- Client function setFrozen(thePlayer) if getPedOccupiedVehicle ( thePlayer ) then local playerVehicle = getPlayerOccupiedVehicle ( thePlayer ) setElementFrozen ( playerVehicle ) end end setTimer(setFrozen, 5000) addEventHandler("onClientMarkerHit", setFrozen) -- Server function destroyBus destroyElement(theVehicle) end addEventHandler("onVehicleExit", destroyBus)
-
Facepalm!! Thanks pa3ck
-
Error in the first code: [19:18:49] ERROR: busjob\busjob.lua:67: attempt to compare number with boolean
-
[19:13:40] ERROR: busjob\busjob_c.lua:1: attempt to call global 'getLocalPlayer' (a nil value) busjob_c.lua
-
Bcuz I'm a noob and can't read 50% of the client so I can't write a Server side
-
In the busjob you drive a Bus so you have a vehicle, You drive and when you wanna stop you exit the bus and the money is given.
-
Hi, This is my code and I've got this errors: [18:28:07] WARNING: busjob\busjob.lua:63: Bad argument @ 'getPedOccupiedVehicle' [18:28:07] WARNING: busjob\busjob.lua:64: Bad argument @ 'getElementModel' [Expe cted element at argument 1, got boolean] [18:28:07] WARNING: busjob\busjob.lua:66: Bad argument @ 'getElementData' [Expec ted element at argument 1, got string 'Quit'] [18:28:07] ERROR: busjob\busjob.lua:67: attempt to compare number with boolean This is my favorite script and the best one i've ever made bcuz i'm a noob and it worked and never got errors before.
-
He said he made it himself and the server side is full of buggs and he doesn't want to give otherwise i've posted the server side here someone could help debug.
-
A friend of me wrote this Client side but he said he can't make the server side bcuz he's busy with school.
-
Hi, Here's an Example of what I want; 1st Row = Name 2nd Row = Playtime 3th Row = Gang/Group your in Last Row not needed How can I create this?
-
local playerX, playerY, playerZ = getElementPosition if getKeyState ( "tab" ) == true then function draw () dxDrawImage(4, 4, screenHeight) end function HandleTheRendering() addEventHandler("onClientRender", root, draw) end addEventHandler("onClientResourceStart", resource) How bout this? Sry i wrote this mobile but i never used dxdraw before.
-
I've fixed it, Can I create an Image on bindKey ? I want my own Scoreboard.
-
Hello again, I'm getting better but I want to know how I can add an Image in the left down corner. I've photoshopped a picture for HUD. What do I need?
-
No camera problem anymore fixed it! Thanks if I need more help i'll post it
-
I just noticed that i'm gonna add onPlayerWasted, next problem... My camera isn't in the right position when spawning (not a huge problem)
-
Maybe this; local spawnX, spawnY, spawnZ = -1976.7485351563, 883.75982666016, 45.203125 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) setElementRotation(source, 0, 0, 270) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox(getPlayerName(source).." has logged in!", 5, 255, 0, 0, font) givePlayerMoney( source, 1000 ) end addEventHandler("onPlayerLogin", getRootElement(), joinHandler)
-
Why did u add setElementRotation to the Money script? I don't know if u understand that u can't rotate money. The rotation is ment for the spawn script
-
Now I got an Error at Money script; [18:28:20] WARNING: test\server.lua:4: Bad argument @ 'getPlayerName' [Expected element at argument 1] [18:28:20] ERROR: test\server.lua:4: attempt to concatenate a boolean value No Debugscript errors
-
Normally you can set Rotation also at spawnPlayer + Still no money at login. My purpose is when a player joins the first time he gets 1000$ but not on reconnect only once.
-
The spawn works but I want it 270°turned, if possible. The money script don't gives errors anymore but doesn't work. No 1000$ given and no Message.
-
function money() outputChatBox(getPlayerName(getElementRoot()).." has logged in!", getElementRoot()) givePlayerMoney( getElementRoot(), 1000 ) end addEventHandler("onPlayerLogin", thePlayer, money) Error: [18:04:52] WARNING: test\server.lua:5: Bad argument @ 'addEventHandler' [Expecte d element at argument 2, got nil]
-
@Castro I still don't spawn. Spawnmanager and My Gamemode are running, Play and freeroam stopped. If I login i don't spawn
-
My testing it now but i guess it will work... Another thing this doesn't work. -- root = getElementRoot() addEventHandler("onPlayerLogin", root, function() outputChatBox(getPlayerName(source).." has logged in!", root) end ) function money() setPlayerMoney( root(), 1000 ) end addEventHandler("onPlayerLogin", root, money)
-
Hello Community, When I start my Gamemode I don't spawn: meta.xml celine.map celine.lua Thanks for helping already! Greetz Viruz
-
Are you sure that u have a server side? If Yes then is there a Function Vehiclee2? don't you mean Vehicle2? triggerServerEvent("Vehiclee2", localPlayer, Manster4[Veh2], "[Manster2]") Maybe a small writing mistake