Jump to content

wesleywillems17

Members
  • Content Count

    106
  • Joined

  • Last visited

Everything posted by wesleywillems17

  1. Hi all, Is it possible to make a GUI fade in? And how?
  2. Already found, it was a bug in the freeroam because i used the old freeroam.zip from MTA 1.4.3 But thx for the help!
  3. I downloaded a other login system resource from the community but still i get the error. So it has nothing to do with the script that i placed in the topic. Where can i look to find the bug? the debug doesn't give me a resource name.
  4. The debug says: ERROR: Client (****) triggered serverside event onLoadedAtClient, but event is not added serverside
  5. Hi all, Today i updated my MTA from 1.4.3 to 1.5.3 I have copied all my resources from my older server to my new server but i have a problem. Everytime somebody joins my server then i get this error: ERROR: Client (****) triggered serverside event onLoadedAtClient, but event is not added serverside But there is no onLoadedAtClient -,- Can somebody tell me how to fix this? Login-system resource: Client.lua local infoLabelText = "Welcome to SARS:RPG\n\nYou must have a account to have access to SARS:RPG\nIf you don't have a account then feel fr
  6. I know but i have no idea how to use: executeSQLDelete
  7. Hi all, I have downloaded a car shop resource from the community. I'm trying to add a sell button to sell a purchased vehicle but i have no experience with executeSQLQuery. Can somebody help me or explain to me how i could add a sell button to the panel? Client-side: dealerwdw = guiCreateWindow(0.19, 0.19, 0.57, 0.70, "", true) guiWindowSetSizable(dealerwdw, false) guiSetVisible(dealerwdw, false) dealerwdwgrid = guiCreateGridList(0.02, 0.05, 0.97, 0.83, true, dealerwdw) guiGridListAddColumn(dealerwdwgrid, "Car", 0.5) guiGridListAddColumn(dealerw
  8. What do you mean with "streamers"
  9. Hi all, I'm currently busy scripting a roleplay server. Does somebody know if it is possible to bring the map of GTA United to MTA? Can i import the DDF, TXD and COL map files to MTA? If so, has somebody experience with this?
  10. Hi all, I'm busy with a trucker job resource for my server. But i have a problem with hiding the marker and blip when the player get's out of the truck. The markers are created at the client-side but i have no idea how i could send the marker and blip to the server-side (to hide). Client-side: addEventHandler("onClientVehicleExit", root, function(thePlayer) local Truck = getPedOccupiedVehicle ( thePlayer ) if Truck and getElementModel(Truck) == 403 then end end ) Server-side: function HideBlipMarker ( thePlayer ) setElementVisibleTo ( *Ma
  11. Hi all, I'm busy with a drug transport script for my server. I'm trying to add a wanted level function to it so that if the player deliverd the van he will get 2 start of wanted level. But my problem is when i use setPlayerWantedLevel (thePlayer, 2) and the player has 4 start then the player will lose 2 start. Can somebody tell me how to fix this?
  12. Hi all, I have a problem with my drug transport script. I'm trying to make the marker not Visible once the player reach his destination. Everythibng works but i get a error everytime i hit the destination marker. How could i fix this? WARNING: [gameplay]\SRdrugDeliver\server.lua:14: Bad argument @ 'setElementVisibleTo' [Expected element at argument 2] function JobDoneLS(attackerLS) if (attackerLS) and (attackerLS ~= source) then setElementVisibleTo ( markerLS, attackerLS, false ) if isElement(CarLS) then destroyElement ( CarLS ) end end end ad
  13. Hi, I have a problem with my car spawn script. Everything worked but when a player isn't in a team it says "Expected team at argument 1, got boolean". I know that it has something to do because i'm not in a team. What do i need to add to remove this bug/report? local vehicleTable = {} function SpawnRandomCopCar () team = getPlayerTeam(source) if (getTeamName(team) == "Police officer") then local CopCar = vehicleTable[source] if CopCar then if isElement( CopCar ) then destroyElement( CopCar ) end vehicleTable[source]= nil end x, y, z = SpawnCopCar
  14. I didn't script that, it was already there. It's the freeroam.zip
  15. Thx it worked! Also everytime i join my server and start the debug it says: ERROR: freeroam\gui.lua:24 attempt to index local 'wnd' (a nil value) GUI.lua:24: function createWindow(wnd, rebuild) if wnd.element then if rebuild then destroyElement(wnd.element) else guiSetVisible(wnd.element, true) guiBringToFront(wnd.element) g_openedWindows[wnd] = true if wnd.oncreate then wnd.oncreate() end return end end _planWindow(wnd) _buildWindow(wnd) end I'm not a pro scripter but i'm still busy learning it but i have really no idea what i need to edit
  16. So what do i need to do to fix this problem? Give the function createVehicle() a other name?
  17. Hi everybody, I'm creating a verhicle spawner for my police job but i have a problem. The script won't load and debug says: ERROR: SRpolice/vehicleC.lua:19 Stack overflow vehicleC.lua: local VehicleMarkerP = createMarker ( 1579.60, -1635.33, 12.56, "cylinder", 1, 0, 0, 255, 255 ) local cars = { { 1552.50, -1606.20, 13.19 }; { 1556.70, -1606.20, 13.19 }; { 1560.90, -1606.20, 13.19 }; { 1565.09, -1606.20, 13.19 }; { 1569.29, -1606.20, 13.19 }; { 1573.50, -1606.20, 13.19 }; { 1577.70, -1606.20, 13.19 }; { 1581.90, -1606.20, 13.19 }; {
  18. Ow i didn't see that i used root in the triggerServerEvent. I have changed it to thePlayer in the client-side and in the server-side i added source. It worked, thx everybody!
  19. Hi everyone! I i'm busy with creating a police job resource for my server. But i have a problem with the police team. Everytime when i hit the job marker and try to join the police officer team i get this message in the debug: WARNING: [gameplay]\SRpolice\server.lua:6: Bad argument @ 'setPlayerTeam' [Expected player at argument 1, got root] Server.lua: Teame = createTeam("Police officer", 0, 255, 255) function takePoliceJob () local teamP = getTeamFromName ( "Police officer" ) if teamP then setPlayerTeam( source, teamP ) setElementModel( source, 28
  20. Thx and i'm still busy with it so there are some bugs maybe and i'm learning it so its hard for me to make a script like this. ( without any bugs). And that's a good idea.. i have really no idee why i was use the server-side to create the marker and destroy it). Normally i use the client-side (Really no idee why but that's how i learned it). Also sorry for my bad English
  21. Oow i thought you mean that part of the code
  22. Sure! function JobDone ( hitElement, matchingDimension ) if hitElement then local elementType = getElementType( hitElement ) if elementType == "player" then if isElement( EndDesMarker ) then destroyElement( EndDesMarker ) end if isElement( EndDesBlip ) then destroyElement( EndDesBlip ) end if isElement( CarJacker ) then destroyElement( CarJacker ) end if isElement( CarJackerBlip ) then destroyElement( CarJackerBl
×
×
  • Create New...