Jump to content

yMassai

Members
  • Posts

    382
  • Joined

  • Last visited

Everything posted by yMassai

  1. yMassai

    Not Working

    --Create GUI function testCreateTestGUI() test_window_main = guiCreateWindow (0.3,0.2,0.4,0.5,"Train Mission",true) memo1 = guiCreateMemo (0.15,0.2,0.7,0.5,"Nothing",true,test_window_main) test_window_main_button_acceitar = guiCreateButton(0.52,0.85,0.45,0.1,"Aceitar",true,train_window_main) test_window_main_button_sair = guiCreateButton(0,0.85,0.45,0.1,"Sair",true,test_window_main) showCursor (true) end addEvent ("testCreateTestGUI",true) addEventHandler ("testCreateTestGUI",getResourceRootElement(getThisResource()),testCreateTestGUI) --On test Window Click function testOntestWindowClick() if source == test_window_main_button_aceitar then triggerServerEvent ("testCreateTest",getRootElement()) testDestroyTestGUI () elseif source == test_window_main_button_sair then testDestroyTestGUI () end end addEventHandler("onClientGUIClick",getRootElement(),testOnTestWindowClick) these are the data of window. this test_c
  2. yMassai

    Not Working

    --Create Stuff function testCreateTrainStuff() test_marker_request = createMarker( 1543.98962, -1670.46398, 12.55753 , "cylinder", 1.5, 255, 0, 0, 170) createBlip ( 1543.98962, -1670.46398, 13.55753 , 41) createPed (280,1543.98962,-1670.46398,13.55753, 5.0) setElementFrozen ( ped, true ) end addEventHandler ("onResourceStart",getResourceRootElement(getThisResource()),testCreateTestStuff) --Create Vehicle function testCreateTest () theTest = createVehicle (596, 1535.05615, -1675.60766, 12.96008) outputChatBox ("Você virou Policial",source, 255, 00, 00) end addEvent ("testCreateTest",true) addEventHandler ("testCreateTest",getRootElement(),testCreateTest) --Test Gui function testCreateTestGUI(hitElement) if source == test_marker_request then triggerClientEvent (hitElement,"testCreateTestGUI",getRootElement()) end end addEventHandler ("onMarkerHit",getRootElement(),testCreateTestGUI) this feature is not working could anyone help me? would also have put to take a team and a skin? this test_s
  3. yMassai

    Need Help

    local skin = {[287] = true} --lock --lock vehicle lock [color=#FF4000]lockVehicles = { [470]=true } --sets the lock vehicles[/color] [color=#FF4000]lockSkins = { [287] =true } -- sets the lock skins[/color] function lockenterVehicle ( player, seat, jacked ) if ( lockVehicles[getElementModel ( source )] ) and ( not lockSkins[getElementModel ( player )] ) and ( seat == 0 ) then --checks player skin cancelEvent() outputChatBox ( "*You can't enter in Vehícle", player , 255, 00, 00) --info in chatbox end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockenterVehicle ) I would like to add more vehicles and skins but I can not, can someone help me?
  4. sorry friend I would like to know how to get a skin. this case the player get a Team, you can would tell me how to get a skin and a team?
  5. thank you. I will say that I do not understand very well not to be in doubt. you spoke to cancel something and freeze I dont know do it friend. you know you explain?
  6. createPed ( skin id, x, y, z) With it to create a puppet, but gets a single problem in this method of husbandry, the doll may die and can move. Someone could tell me how can I do for him not to die and not move? And also do not know how to turn it to the side that I want. Please take it easy with me.
  7. this case would be the team would know but let me know how Faso to get a skin?
×
×
  • Create New...