Jump to content

Stevenn

Members
  • Posts

    97
  • Joined

  • Last visited

Stevenn's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

0

Reputation

  1. Stevenn

    sqlite

    hey i need help with sqlite because i have never used it before and i can't get the examples on the wiki can somebody give me an example on how to save interior in sqlite?
  2. because i have a gui window and i need to use it more than once without recreating it
  3. hey how can I rename a variable? like i have this: mywindow = guiCreateWindow( 100, 100, 100, 100, "lol", false) mylabel = guiCreateLabel(100, 100, 100, 100, "text", mywindow, false) mybutton = guiCreateButton(100, 100, 100, 100, "lol", mywindow, false) addEventHandler("onClientGUIClick", resoucreRoot, function() if source == mybutton then setVariable(mybutton, thenewVariable) end end) Do you know what I mean? :D
  4. nevermind i got it to work
  5. I know, it is a client script
  6. Ok, so I added to the meta and then exports ["testResource"] : randomTest("test") but no result
  7. Hello, I have this script: Client: function randomTest(text) guiSetText (myLabel, text) end addEvent("randomTest", true) addEventHandler("randomTest", root, randomTest) Client: triggerClientEvent(source,"randomTest", root, "the text") But how can I make it a exported function? So I could use something like: exports["setText"] : randomTest ( "my text??" ) -- server exports["setText"] : randomTest ( source, "my text??" )
  8. hi, how can i make a vehicle spawner like first a table with which team who is allowed to use it, then the vehicle id(s) and marker position. Like CIT's! Please give me the events/functions. Thanks!!
  9. Woah, double mistake the code worked nevermind
  10. Yea it did work, I had wrong gui element my misstake.
  11. hello, how can i set the text server sided? I tried this but it did not work!: function randomTest(text) guiSetText (myLabel, text) end addEvent("randomTest", true) addEventHandler("randomTest", root, randomTest) and server: triggerClientEvent(source,"randomTest", root, "the text")
  12. Hello. I tried this, but did not work: local texts = { {"firstText", [[ Title First Text ]] }, {"secondText", [[ Title Second text ]] }, } local randomText = math.random ( texts[index][2], texts[index][4] ) function setRandomtext () guiSetText ( memo, randomText ) end setTimer ( setRandomtext, 60000, 1 ) -- the text should be updated every 60000 milli-seconds.
  13. Stevenn

    staff tag

    i tried to make a staff tag script but it doesn't work.. function staffTag() local maxrange = 123 scx,scy = getScreenFromWorldPosition (x,y,z) local x, y, z = getElementPosition ( localPlayer ) local camX,camY,camZ = getCameraMatrix() if scx and scy and getDistanceBetweenPoints3D(camX,camY,camZ,x,y,z+5) <= maxrange then dxDrawText("Staff",x, y, z,tocolor(255,255,255,255),1.0,"bankgothic","left","top",false,false,false) end end addEventHandler ( "onClientRender", root, staffTag ) what is wrong?
×
×
  • Create New...