Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. catch: http://dzek.metal.info/pub/libsqlite3.so.0 put this in /root/mta/mods/deathmatch/ and chmod for execution
  2. catch: http://dzek.metal.info/pub/libsqlite3.so.0 put this in /root/mta/mods/deathmatch/ and chmod for execution
  3. omg, he want to set and rest we should do? o_O this is forum for HELP, not for DOING A JOB FOR YOU
  4. omg, he want to set and rest we should do? o_O this is forum for HELP, not for DOING A JOB FOR YOU
  5. Gamesnert, i think i explained it clearly. on client side im triggering server side event to create a vehicle, setElementData for player, containing a reference to created vehicle then i want to create client side event onClientVehicleExit.. but Jumba' explained it well, thanks
  6. Gamesnert, i think i explained it clearly. on client side im triggering server side event to create a vehicle, setElementData for player, containing a reference to created vehicle then i want to create client side event onClientVehicleExit.. but Jumba' explained it well, thanks
  7. ok, im getting crazy with all those events to script simple mission i need a lot of events, it was easier to script main.scm nvm function startMission() triggerServerEvent('startMission', getLocalPlayer()) -- this creates vehicle, and puts player into it -- and also do setElementData (thePlayer, "missionVehicle", createdVehicle) -- now i want to read element data, and set an client exit vehicle event -- but i cannot, becouse of lag, between sending data end addEventHandler ( "onClientGUIClick", myBtn, startMission, false ) so, should i create next freaking event, for waiting data to sync? or theres another way.. maybe i dont know something yet?
  8. ok, im getting crazy with all those events to script simple mission i need a lot of events, it was easier to script main.scm nvm function startMission() triggerServerEvent('startMission', getLocalPlayer()) -- this creates vehicle, and puts player into it -- and also do setElementData (thePlayer, "missionVehicle", createdVehicle) -- now i want to read element data, and set an client exit vehicle event -- but i cannot, becouse of lag, between sending data end addEventHandler ( "onClientGUIClick", myBtn, startMission, false ) so, should i create next freaking event, for waiting data to sync? or theres another way.. maybe i dont know something yet?
  9. on wiki you can found "script" like that function say_hi (player ) -- The player who triggered the command local aName = getPlayerName(player) outputChatBox (aName.. " says hi to everyone",getRootElement(), 194, 103, 181) end addCommandHandler( "hi", say_hi ) not tested but shold work:P this is server side
  10. on wiki you can found "script" like that function say_hi (player ) -- The player who triggered the command local aName = getPlayerName(player) outputChatBox (aName.. " says hi to everyone",getRootElement(), 194, 103, 181) end addCommandHandler( "hi", say_hi ) not tested but shold work:P this is server side
  11. sometimes you can found your last edited map in "editor_test" folder (in server/(...)/ folder), look there
  12. sometimes you can found your last edited map in "editor_test" folder (in server/(...)/ folder), look there
  13. ah! thanks for all the info, but this still confuses me, as when i click anywhere NOT on a button but inside gui window it fires events for all buttons missionSelectWindow1 = {} missionSelectWindow1 = guiCreateWindow(0.35,0.15,0.3162,0.5717,"test",true) guiWindowSetSizable(missionSelectWindow1,false) missionSelect_Place_Button1 = guiCreateButton(0.08,0.20,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button2 = guiCreateButton(0.08,0.35,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button3 = guiCreateButton(0.08,0.50,0.84,0.1,"YES2",true,missionSelectWindow1) missionSelect_Place_Button4 = guiCreateButton(0.08,0.65,0.84,0.1,"NO2",true,missionSelectWindow1) missionSelect_Exit_Button1 = guiCreateButton(0.08,0.90,0.84,0.1,"EXIT",true,missionSelectWindow1) missionSelect_Label1 = guiCreateLabel(0.08,0.1,0.84,0.1,"Select place and prize",true,missionSelectWindow1) guiLabelSetVerticalAlign(missionSelect_Label1,"top") guiLabelSetHorizontalAlign(missionSelect_Label1,"center",false) guiSetVisible (missionSelectWindow1, false) addEventHandler ("onClientGUIClick", missionSelect_Place_Button1, missionStart) addEventHandler ("onClientGUIClick", missionSelect_Place_Button2, missionStart) addEventHandler ("onClientGUIClick", missionSelect_Exit_Button1, guiCancel) edit: i did setElementData(missionSelect_Place_Button1,"number",'1') for every button and then function missionStart(whichMouse, state, absoluteX, absoluteY) local number = getElementData(source,"number") outputChatBox(number) end gives me nothing if i click not on the button.. so it fires so much events it found, but without a source?.. this will be probably something really stupid, im feeling it
  14. ah! thanks for all the info, but this still confuses me, as when i click anywhere NOT on a button but inside gui window it fires events for all buttons missionSelectWindow1 = {} missionSelectWindow1 = guiCreateWindow(0.35,0.15,0.3162,0.5717,"test",true) guiWindowSetSizable(missionSelectWindow1,false) missionSelect_Place_Button1 = guiCreateButton(0.08,0.20,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button2 = guiCreateButton(0.08,0.35,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button3 = guiCreateButton(0.08,0.50,0.84,0.1,"YES2",true,missionSelectWindow1) missionSelect_Place_Button4 = guiCreateButton(0.08,0.65,0.84,0.1,"NO2",true,missionSelectWindow1) missionSelect_Exit_Button1 = guiCreateButton(0.08,0.90,0.84,0.1,"EXIT",true,missionSelectWindow1) missionSelect_Label1 = guiCreateLabel(0.08,0.1,0.84,0.1,"Select place and prize",true,missionSelectWindow1) guiLabelSetVerticalAlign(missionSelect_Label1,"top") guiLabelSetHorizontalAlign(missionSelect_Label1,"center",false) guiSetVisible (missionSelectWindow1, false) addEventHandler ("onClientGUIClick", missionSelect_Place_Button1, missionStart) addEventHandler ("onClientGUIClick", missionSelect_Place_Button2, missionStart) addEventHandler ("onClientGUIClick", missionSelect_Exit_Button1, guiCancel) edit: i did setElementData(missionSelect_Place_Button1,"number",'1') for every button and then function missionStart(whichMouse, state, absoluteX, absoluteY) local number = getElementData(source,"number") outputChatBox(number)end gives me nothing if i click not on the button.. so it fires so much events it found, but without a source?.. this will be probably something really stupid, im feeling it
  15. Im starting to have fun with GUI windows, but i cant understand some strange behaviours.. why with this: missionSelectWindow1 = {} missionSelectWindow1 = guiCreateWindow(0.35,0.15,0.3162,0.5717,"Mission Test",true) guiWindowSetSizable(missionSelectWindow1,false) missionSelect_Place_Button1 = guiCreateButton(0.08,0.20,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button2 = guiCreateButton(0.08,0.35,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button3 = guiCreateButton(0.08,0.50,0.84,0.1,"YES2",true,missionSelectWindow1) missionSelect_Place_Button4 = guiCreateButton(0.08,0.65,0.84,0.1,"NO2",true,missionSelectWindow1) missionSelect_Exit_Button1 = guiCreateButton(0.08,0.90,0.84,0.1,"EXIT",true,missionSelectWindow1) missionSelect_Label1 = guiCreateLabel(0.17,0.1,0.668,0.2233,"Select place and prize",true,missionSelectWindow1) guiLabelSetVerticalAlign(missionSelect_Label1,"top") guiLabelSetHorizontalAlign(missionSelect_Label1,"center",false) --guiSetVisible (missionSelectWindow1, false) first button is unclickable (it will call an event when i click somewhere in the label..) but its positioned where it should be .. and one more thing, as i dont want to create next topic: is there any way to destroy button? i want text on buttons to be dynamic, so.. i dont see any functions to destroy gui windows,labels,buttons...
  16. Im starting to have fun with GUI windows, but i cant understand some strange behaviours.. why with this: missionSelectWindow1 = {} missionSelectWindow1 = guiCreateWindow(0.35,0.15,0.3162,0.5717,"Mission Test",true) guiWindowSetSizable(missionSelectWindow1,false) missionSelect_Place_Button1 = guiCreateButton(0.08,0.20,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button2 = guiCreateButton(0.08,0.35,0.84,0.1,"NO",true,missionSelectWindow1) missionSelect_Place_Button3 = guiCreateButton(0.08,0.50,0.84,0.1,"YES2",true,missionSelectWindow1) missionSelect_Place_Button4 = guiCreateButton(0.08,0.65,0.84,0.1,"NO2",true,missionSelectWindow1) missionSelect_Exit_Button1 = guiCreateButton(0.08,0.90,0.84,0.1,"EXIT",true,missionSelectWindow1) missionSelect_Label1 = guiCreateLabel(0.17,0.1,0.668,0.2233,"Select place and prize",true,missionSelectWindow1) guiLabelSetVerticalAlign(missionSelect_Label1,"top") guiLabelSetHorizontalAlign(missionSelect_Label1,"center",false) --guiSetVisible (missionSelectWindow1, false) first button is unclickable (it will call an event when i click somewhere in the label..) but its positioned where it should be .. and one more thing, as i dont want to create next topic: is there any way to destroy button? i want text on buttons to be dynamic, so.. i dont see any functions to destroy gui windows,labels,buttons...
  17. there is a "banking system" on community https://community.multitheftauto.com/ and saving other things .. i havent seen that
  18. there is a "banking system" on community https://community.multitheftauto.com/ and saving other things .. i havent seen that
  19. i think i learned a bit on scripting and but got one more question: can i force player to exit vehicle? or do other actions? i dont want to "get" it from the car, and put near car door. and other actions - i mean make player walk some place, as in single player scripting (main.scm) ?
  20. i think i learned a bit on scripting and but got one more question: can i force player to exit vehicle? or do other actions? i dont want to "get" it from the car, and put near car door. and other actions - i mean make player walk some place, as in single player scripting (main.scm) ?
  21. im looking for event triggered when ped/vehicle gets in water.. is there something like that (cant found in wiki) or should i write it by myself using onClientFrameRender and isElementInWater ?
×
×
  • Create New...