CLEO Help Spawn car with cleo

CLEO related
Status
Not open for further replies.

Zin

Expert
Joined
Aug 1, 2013
Messages
1,723
Solutions
1
Reaction score
112
So i dont care if spawning a car with cleo isnt sync it still works so i made this little cleo

Code:
{$CLEO .cs}
THREAD 'CAR'
:CAR_01
wait 0
if
0ADC:   test_cheat "Givecar"
else_jump @CAR_01
018C: play_sound 1052 at 0.0 0.0 0.0

0ADD: spawn_car_with_model #RHINO like_a_cheat

But somethings wrong when i type Givecar i hear the activation sound and something happens my screen goes to the samp started screen when your connecting to the server and i have something in the corner saying GAMBLING whats the correct opcode to spawn a car
 

Z0DY

Well-known member
Joined
Feb 20, 2013
Messages
225
Reaction score
0
kk i try some Opcode's

Edit:
Code:
{$CLEO .cs}
thread 'car'

:start
wait 0
if
0AB0:  key_pressed 0xA0
jf @start
Actor.StorePos($player_actor, 1@, 2@, 3@)
00A5: 0@ = create_car #INFERNUS at 1@ 2@ 3@
036A: put_actor $player_actor in_car 0@ 
wait 2000
jump @start

this works fine for me, you just cant enter it with a F so you must edit it a little bit^^
 
Status
Not open for further replies.
Top